
import 'package:flutter/material.dart';

class second extends StatelessWidget {

  static final String routename = '/second';

  @override
  Widget build(BuildContext context) {

    //接收数据
    final message = ModalRoute.of(context).settings.arguments;

    return Scaffold(
      
      appBar: AppBar(
        title: Text('Second'),
      ),
      
      body: Center(
        
        child: Column(

          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            
            RaisedButton(onPressed: (){

              Navigator.of(context).pop('这是上个页面的信息');
              
            },

            child: Icon(Icons.arrow_back),
            
            ),
            
            Text(message)
            
            
            
            
          ],
          
          
        ),
        
        
      ),
    );
  }
}
